package com.wrb.appointment.feign;

import com.wrb.appointment.response.ServerResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author Wrb
 * @date 2019/12/20 16:21
 */
@FeignClient("summary-coupon")
public interface CouponServiceFeign {

	//发放用户优惠券
	@RequestMapping(value = "/micro/coupon/generateCustomerCoupon", method = RequestMethod.POST)
	ServerResponse<String> generateCustomerCoupon(
			@RequestParam(required = true) long customerId,
			@RequestParam(required = true) long couponTemplateId,
			@RequestParam(required = true) String source
	);

}
